package com.sgolub.commanndsonline.service.entity;

import java.util.Date;
import java.util.List;

import com.sgolub.commanndsonline.domain.entity.UserBasket;
import com.sgolub.commanndsonline.domain.proxy.ProxyUserBasketTotal;

public interface UserBasketService {

	public UserBasket			get(Integer 		id);
	
	public String				checkOneItem (Integer 		id);
	
    public void 				add(UserBasket 		userBasket);
    public void 				update(UserBasket 	userBasket);
    public void 				remove(Integer 		id);
    
    public List<UserBasket> list();
    public List<UserBasket> filter();
    public List<UserBasket> listCurrentUserBasket(Integer userId);
    public List<UserBasket> advansedListCurrentWithPaginationJQGrid
	(Integer userId,int rowsPerPage, int currentPage, String sortByColumn, String sortMode);
    
    public String clearCurrentUserBasket(Integer userId);
    public String addItemToCurrentUserBasket(Integer userId, Integer itemId, Date beginCommandDate);
    public String submitCurrentUserBasket(Integer userId);
    
    public List<ProxyUserBasketTotal> listByUserId(Integer userId);
    public Integer totalSumByUserId(Integer userId);
}

